<template>
	<view class="page center">
		<view class="c-header">
			<view class="h-login" v-if="isLogin">
				已登录
			</view>
			<view v-else class="h-nologin">
				<text class="n-register">注册</text>
				<text class="n-split">|</text>
				<text class="n-login">登录</text>
			</view>
		</view>
		
		<view class="c-order">
			<view class="o-top">
				<text class="t-left">我的订单</text>
				<text class="t-right">全部订单</text>
			</view>
			<view class="o-bottom">
				<view class="b-wrap">
					<text class="iconfont">&#xe673;</text>
					<text class="w-text">待付款</text>
				</view>
				<view class="b-wrap">
					<text class="iconfont">&#xe62f;</text>
					<text class="w-text">待收货</text>
				</view>
				<view class="b-wrap">
					<text class="iconfont">&#xe672;</text>
					<text class="w-text">待评价</text>
				</view>
				<view class="b-wrap">
					<text class="iconfont">&#xe622;</text>
					<text class="w-text">退款/售后</text>
				</view>
			</view>
		</view>
		
		<view class="c-mine">
			<view class="m-wrap" v-for="(item, index) in list.mine" :key="index">
				<text class="w-left">{{item.title}}</text>
				<text>{{item.chargefree}}</text>
			</view>
		</view>
		
		<view class="c-serve">
			<view class="s-wrap" v-for="(item, index) in list.serve" :key="index">
				<text>{{item.title}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	import { mapState } from 'vuex'
	export default {
		data() {
			return {
				list: {
					mine: [
						{title: "我的优惠券", chargefree: ""},
						{title: "我的收藏", chargefree: ""},
						{title: "我的拼团", chargefree: ""},
						{title: "我的免单券", chargefree: "0张"},
						{title: "借钱", chargefree: "新用户免费领100元"}
					],
					serve: [
						{title: "客服中心", chargefree: ""},
						{title: "关于", chargefree: ""}
					]
				}
			}
		},
		computed: {
			...mapState(['isLogin'])
		},
		methods: {
			
		}
	}
</script>

<style lang="less">
@import "./center";
</style>
